<?php
namespace addons\TfFutures\common\models;

use yii\db\ActiveRecord;
use common\helpers\StringHelper;

/**
 * 用户应用信息表.
 */
class NoticeModel extends ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%addon_tf_futures_notice}}';
    }
    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['title','desc','created_at','updated_at'], 'required'],
            [['title'], 'string', 'max' => 30],
            [['desc'], 'string', 'max' => 100],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'title' => '标题',
            'desc' => '详细描述',
            'status' => '状态',
            'created_at' => '创建时间',
            'updated_at' => '修改时间',
        ];
    }
}
